<?php
/**
 * 来访的人
 * 
 * @author daniel <desheng.young@gmail.com>
 */
class RecuserWidget extends Widget
{
	/**
	 * 
	 * 明星会员
	 * 
	 * 
	 * 
	 */
	public function render($data)
	{
		
		$data['title']  = $data['title'] ? $data['title'] : '明星会员';
		$data['list'] = M('user')->field('uid,uname')
						->where('recommend=1')
						->order('ctime DESC')->limit(9)->findAll();

		$content = $this->renderFile(ADDON_PATH . '/widgets/Recuser.html', $data);

		return $content;
	}
}